/**
 * gvSIG. Desktop Geographic Information System.
 *
 * Copyright (C) 2007-2012 gvSIG Association.
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 * MA  02110-1301, USA.
 *
 * For any additional information, do not hesitate to contact us
 * at info AT gvsig.com, or visit our website www.gvsig.com.
 */
package org.gvsig.titleblock.impl;

import org.gvsig.app.project.documents.layout.gui.LayoutPanel;
import org.gvsig.titleblock.IFFrameToTB;
import org.gvsig.titleblock.ITBManager;
import org.gvsig.titleblock.ITBToFFrame;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * Manager implementation
 * 
 * @author gvSIG Team
 * @version $Id$
 */
public class TBManager implements ITBManager {

	private static final Logger logger = LoggerFactory.getLogger(TBManager.class);
	private IFFrameToTB fframeToTB;
	private ITBToFFrame tbToFframe;
	private LayoutPanel layout;
	
	
	public void initialize(IFFrameToTB frameTB, ITBToFFrame tbFrame, LayoutPanel layout) {
		this.fframeToTB = frameTB;
		this.tbToFframe = tbFrame;
		this.layout = layout;
		FFrames.registerPersistent();
	}

	public IFFrameToTB getFrameToTb() {
		return fframeToTB;
	}

	public ITBToFFrame getTBToFrame() {
		return tbToFframe;
	}
	
	public LayoutPanel getLayout(){
		return layout;
	}

}
